package com.boot.web.dao;

import com.boot.web.entity.TodayCollageVoucher;
import com.boot.base.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 每日拼团返现余额数据层接口
 * @author 【zhouJie】
 * @date 2021-11-05 00:09:43
 */
public interface TodayCollageVoucherDao extends BaseDao<TodayCollageVoucher> {

    TodayCollageVoucher queryByUserIdAndModeId(@Param("userId") Integer userId, @Param("modeId") Integer modeId);

    List<TodayCollageVoucher> queryByStatus();

    List<TodayCollageVoucher> queryByStatus1();

    List<TodayCollageVoucher> queryByStatusAndIsRefund();

    BigDecimal queryByTotalAmount(Integer userId);

    BigDecimal queryByTotalAmount_1(Integer userId);

    BigDecimal queryByTotal();

    List<TodayCollageVoucher> queryByTest();

    List<TodayCollageVoucher> queryByTest1();

}
